﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KidsProtector
{
    public partial class Confirmation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            long idRate = long.Parse(Request.QueryString["id"]);
            string val = Request.QueryString["val"];
                BusinessManagement.Rate rateBM = new BusinessManagement.Rate();
            if (val == "no")
            {
                rateBM.remove(idRate);
            }
            else
            {
                BusinessManagement.Site siteBM = new BusinessManagement.Site();
                siteBM.UpdateMoy(rateBM.GetRate(idRate).IdSite);
            }
        }
    }
}